using UnityEngine;
using UnityEngine.UI;
using QFramework;

namespace QFramework.Example
{
	public class UI_SurvivalPowerPanelData : UIPanelData
	{
	}
	public partial class UI_SurvivalPowerPanel : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as UI_SurvivalPowerPanelData ?? new UI_SurvivalPowerPanelData();
			// please add init code here


			DataManager.Instance.survivalPowerModel.AbilityRunTime.RegisterWithInitValue(value =>
			{

                KillNumber.text = value.ToString();


            }).UnRegisterWhenGameObjectDestroyed(gameObject);

		}
		
		protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
			KillNumber.text = "";

        }
		
		protected override void OnClose()
		{
		}
	}
}
